package com.sdk4.jinritemai.model.request;

import com.sdk4.jinritemai.DoudianRequest;
import com.sdk4.jinritemai.model.response.DoudianTradeRefundListSearchResponse;
import lombok.Data;

@Data
public class DoudianTradeRefundListSearchRequest implements DoudianRequest<DoudianTradeRefundListSearchResponse> {
    /**
     * 售后申请开始时间
     */
    private String startTime;
    /**
     * 售后申请结束时间
     */
    private String endTime;
    /**
     * 订单排序方式
     */
    private String isDesc;
    /**
     * 排序字段
     */
    private String orderBy;
    /**
     * 页数
     */
    private String page;
    private String size;
    /**
     * 售后状态
     */
    private String status;
    private String type;
    /**
     * 订单号
     */
    private String orderId;
    /**
     * 售后单号
     */
    private String afterSaleId;
    /**
     * 物流单号
     */
    private String logisticsCode;

    /**
     * 退款类型 0: Origin, 原路退回
     * 1: Offline, 线下退款
     * 2: Imprest,预付款退款
     * 3: Pledge,保证金退款
     * 4: None,无需退款
     * 5: RefundTypeAll, 所有
     */
    private String refundType;

    @Override
    public String getMethod() {
        return "trade.refundListSearch";
    }

    @Override
    public Class<DoudianTradeRefundListSearchResponse> getResponseClass() {
        return DoudianTradeRefundListSearchResponse.class;
    }

}
